/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-17
 * Time: 15:32
 */
interface IntextTable {
    void test();
}
public class Test4 {
    public static void main(String[] args) {
        new IntextTable() {
            @Override
            public void test() {
                System.out.println("test()....");
            }
        }.test();

        IntextTable it = new IntextTable() {
            @Override
            public void test() {
                System.out.println("test1()....");
            }
        };
        it.test();
    }
}
